(function($){
	function formResult(msg, state) {
        layer.closeAll();
        if(state == 0) {
            layer.alert(msg, {icon: 5});
        } else {
            layer.confirm(msg, {icon: 6, title:'系统提示', btn: ['确定']}, function(index){
                location.href = $('#form_update').attr('urlList')
            });
        }
    }
    $(function(){
    	window.formResult = formResult;

        var $paramTags = paramTags.split(',');
        $('.question_tag').each(function(){
            var self = $(this);
            var $did = self.attr('did');
            if($.inArray($did,$paramTags) > -1 ) {
            	self.attr('checked','checked');
            }

        });
   

    	$('#form_update').on('valid.form', function(e, form){            	
            layer.load();
            form.submit();
        });
    	$(".see_pic").click(function(){
        	var _this=$(this);
        	var url=_this.attr("durl");
	        layer.open({
	            type: 2,
	            area: ['1000px', '530px'],
	            title:'查看问题图片',
	            fix: false, //不固定
	            maxmin: true,
	            content: url
	        });
        });
    });
})(jQuery);